﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.IRepository.SystemSettings.CommonlyUsedSettings;
using SystemCenterSoa.PoModel.SystemSettings.CommonlyUsedSettings;

namespace SystemCenterSoa.Service.SystemSettings.CommonlyUsedSettings
{
    public   class BuildingTitleService
    {
        private IBuildingTitleRepository _iBuildingTitleRepository;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="IModuleRepository">注入的dal</param>
        /// <param name="mapper">注入automap</param>

        public BuildingTitleService(IBuildingTitleRepository iBuildingTitleRepository)
        {
            _iBuildingTitleRepository = iBuildingTitleRepository;
        }


        public int BuildingTitleAdd(BuildingTitlePo info)
        {      
            return _iBuildingTitleRepository.BuildingTitleAdd(info);
        }

        public BuildingTitlePo BuildingTitleEdit(int id)
        {
            return _iBuildingTitleRepository.BuildingTitleEdit(id);
        }

        public int BuildingTitlePoDelete(List<int> ids)
        {
            return _iBuildingTitleRepository.BuildingTitlePoDelete(ids);
        }

        public int BuildingTitlePoUpdate(BuildingTitlePo info)
        {
            return _iBuildingTitleRepository.BuildingTitlePoUpdate(info);
        }

        public List<BuildingTitlePo> GetBuildingTitleAll(string name)
        {
            return _iBuildingTitleRepository.GetBuildingTitleAll(name);
        }



    }
}
